//package com.hyperchain.controller;
//
//import cn.dev33.satoken.annotation.SaCheckPermission;
//import com.hyperchain.util.QRCodeUtil;
//import jakarta.servlet.http.HttpServletResponse;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//
//@RestController
//public class QrCodeController {
//
//
//    //生成二维码并将其返回给前端调用者
//    @PostMapping("/generate/code")
//    @SaCheckPermission("generate:code")
//    public void generateV2(String content, HttpServletResponse servletResponse){
//        try {
//            QRCodeUtil.createCodeToOutputStream(content,servletResponse.getOutputStream());
//
//        }catch (Exception e){
//            e.printStackTrace();
//        }
//    }
//}
